<%--
  ~ Copyright (c) 2015 Uwantsoft Ltd.
  ~ www.uwantsoft.com
  ~ All rights reserved.
  ~ This software is the confidential and proprietary information of
  ~ You shall not disclose such Confidential Information and shall use
  ~ it only in accordance with the terms of the license agreement you
  ~ entered into with Uwantsoft.
  --%>

<%--
  @author: Leipeichen
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>城市信息列表</title>
</head>
<body>

<div class="row">
    <div class="col-lg-12">
        <!-- BEGIN BREADCRUMB -->
        <div class="breadcrumbs fixed">
            <ul class="breadcrumb">
                <li>
                    <a href="/backend/dashboard">首页</a>
                </li>
                <li class="active">城市信息</li>
            </ul>
        </div>
        <!-- /#ek-layout-button -->

    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="park_header">
    <div class="row">
        <div class="col-lg-12">
            <!-- START YOUR CONTENT HERE -->
            <div class="portlet">
                <div class="portlet-heading dark">
                    <div class="portlet-title">
                        <h4>城市信息列表
                            <small class="text-white"></small>
                        </h4>
                    </div>
                </div>
                <div class="dataTables_wrapper form-inline no-footer">
                    <div class="area_inline">
                        <form method="post" action="cityoverview" class="col-sm-8">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div>
                                        <div>
                                            <div class="input-group">
                                                <input type="text" name="code" value="${defaultPaginatedList.queryCondition.code}" class="form-control input-sm" placeholder="请输入城市的首字母" aria-controls="SampleDT">
                                                <span class="input-group-btn"><button class="btn btn-info btn-sm" type="submit"><i class="fa fa-search"></i>查询</button></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <button class="btn btn-info btn-sm pull-right" type="button" style="margin-top: 12px;" onclick="location.href='/backend/city'">+增加城市</button>
                    </div>
                    <div style="clear: both;"></div>
                    <display:table list="${cityPaginatedList}" id="city" class="datatable table table-hover table-striped table-bordered tc-table table-content" requestURI="cityoverview" >
                        <display:column title="城市名称" value="${city.name}"/>
                        <display:column title="城市首字母" value="${city.code}"/>
                        <display:column title="操作">
                            <div class="btn-group btn-group-xs ">
                                <a href="/backend/citydetail?guid=${city.guid}" title="详情" class="btn btn-inverse">
                                    <i class="fa fa-eye icon-only"></i>
                                </a>
                                <a href="/backend/city?guid=${city.guid}" title="修改" class="btn btn-inverse">
                                    <i class="fa fa-pencil icon-only"></i>
                                </a>
                            </div>
                        </display:column>
                    </display:table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
